<?php

namespace common\models;


/**
 * Class UsedCarEstimateOrderLog
 * @package common\models
 *
 * @property UsedCarEstimateOrderBankBackLog[] $usedCarEstimateOrderBankBackLogs
 * @property UsedCarEstimateOrder $usedCarEstimateOrder
 */
class UsedCarEstimateOrderLog extends \common\models\base\UsedCarEstimateOrderLog
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getUsedCarEstimateOrderBankBackLogs()
    {
        return $this->hasMany(UsedCarEstimateOrderBankBackLog::className(), ['for_serial_number' => 'serial_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getUsedCarEstimateOrder()
    {
        return $this->hasOne(UsedCarEstimateOrder::className(), ['id' => 'used_car_estimate_order_id']);
    }
}
